<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/pages/safeai/jsp/common/taglibs.jsp"%>
<html>
<head>
<title>销售单</title>
<%@ include file="/pages/safeai/jsp/common/meta.jsp"%>
<script type="text/javascript" src="${ctx}/script/order.js"></script>
<style media="print">
.Noprint {
	display: none;
}

.Print {
	display: ;
}
.PageNext
</style>
<style type=text/css>
table.biao{
	border-bottom:1px solid #000000;
	border-left:1px solid #000000;
	}
	table.biao td{
	border-top:1px solid #000000;
	border-right:1px solid #000000;
	}
	table.biao th{
	border-top:1px solid #000000;
	border-right:1px solid #000000;
	}
.delMouseOver {
	background: #d0e0ff;
	color: black;
	cursor: hand;
	font-family: verdana, arial, helvetica;
	font-size: 8px;
}

.scheduleButtonVisible {
	background: silver;
	border-bottom: gray 1px dashed;
	border-left: white 1px dashed;
	border-right: gray 1px dashed;
	border-top: white 1px dashed;
	color: black;
	cursor: hand;
	font-family: webdings;
	font-size: 8px;
}
</style>

</head>
<body style="font-size: 10px" onload="countAllss();">
<%@ include file="/pages/safeai/jsp/common/taglibs.jsp"%>

<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<table width="100%" border="0" style="font-size: 10px">
	<tr>
		<td>订单编号</td>
		<td>${orderall.id}</td>
		<td>订购时间</td>
		<td>${orderall.adddate}</td>
		<td>客户姓名</td>
		<td>${orderall.consignee}</td>
		<td>总数 <span id="sumCount"></span></td>
		<td></td>
	</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="biao"
	id="buzhi" style="font-size: 10px">
	<tr>
		<th>商品编号</th>
		<th>商品名称</th>
		<th>数量</th>
		<th><INPUT name=price type=hidden> 价格</th>
		<th>是否开发票</th>
		<th><INPUT name=cash type=hidden> 小计</th>

	</tr>
	<logic:iterate id="product" name="productlist1" indexId="cd">
		<tr class=tableData id=tdt>
			<td>${product.productid}</td>
			<td>${product.name}</td>
			<td>${product.number}</td>
			<td><logic:equal value="0" name="product" property="hasinvoice">${product.unitprice}</logic:equal>
			<logic:equal value="1" name="product" property="hasinvoice">${product.pricetax}</logic:equal>
			</td>
			<td><logic:equal value="0" name="product" property="hasinvoice">否</logic:equal>
			<logic:equal value="1" name="product" property="hasinvoice">是</logic:equal>
			</td>
			<td>cd</td>
		</tr>
	</logic:iterate>
	<tr>
		<td class="td_04" align="right" colspan="7">
		<div style="width: 93%; float: left; text-align: right">支付积分：</div>
		<div id="gaousepoint"
			style="width: 7%; float: right; text-align: center"><logic:empty
			name="orderall" property="usepoint">
						0
						</logic:empty> <logic:notEmpty name="orderall" property="usepoint">
							${orderall.usepoint}
							</logic:notEmpty></div>
		</td>
	</tr>
	<tr>
		<td align="right" class="td_04" colspan="7">
		<div style="width: 93%; float: left; text-align: right">支付滞留金：</div>
		<div id="gaousebalance"
			style="width: 7%; float: right; text-align: center">${orderall.usebalance}</div>
		</td>
	</tr>
	<tr>
		<td align="right" class="td_04" colspan="7">
		<div style="width: 93%; float: left; text-align: right">配送金额：</div>
		<div id="gaoneedcarriage"
			style="width: 7%; float: right; text-align: center">${orderall.needcarriage}</div>
		</td>
	</tr>
	<tr>
		<td align="right" class="td_04" colspan="7">
		<div style="width: 93%; float: left; text-align: right">优惠券：</div>
		<div id="gaoneedcarriage"
			style="width: 7%; float: right; text-align: center">
		${youmo.favourablemoney}</div>
		</td>
	</tr>
	<tr>
		<td align="right" class="td_04" colspan="7">
		<div style="width: 93%; float: left; text-align: right">合计金额：</div>
		<div style="width: 7%; float: right; text-align: center">
		${orderall.needpay}</div>

		</td>
	</tr>
	<!--  
				<tr>
					<td align="right" class="td_04" colspan="7">
							<div style="width:93%;float:left;text-align:right">合计金额：</div>
							<div style="width:7%;float:right;text-align:center" id="gaotaltole"></div>
					</td>
				</tr>
				-->
</table>
<br />
<div style="text-align: center"><OBJECT
	classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0
	id=WebBrowser width=0></OBJECT> <input class="Noprint" type="button"
	value="打印订单" onClick="document.execCommand('print');"> <input
	class="Noprint" name=Button onClick=document.all.WebBrowser.ExecWB(7,1)
	type=button value='打印预览'></div>
</body>

</html>
